package com.turtle.feign;

import org.springframework.web.bind.annotation.*;

/**
 * @author lijiayu
 * @date 2020/7/28
 * @description
 */
@RequestMapping("/es-rpc")
public interface EsFeignApi {

    /**
     * 添加文档
     * @param id
     */
    @PostMapping
    void addElasticIndexById(@RequestParam("id") Long id);

    /**
     * 修改文档
     * @param id
     */
    @PutMapping
    void updateElasticIndexById(@RequestParam("id") Long id);

    /**
     * 删除文档
     * @param id
     */
    @DeleteMapping
    void deleteElasticIndexById(@RequestParam("id") Long id);
}
